define([
    'jQuery',
    'Underscore',
    'Backbone',
    'Kendo'
], function($, _, Backbone, Kendo) {

    
    
    var Tree = kendo.data.Model.define({
   
        id: "id",
        
        fields: {
            
            id: {
                editable: false
            },
            
            treespecieId: {
                type: "integer",
                validation: { 
                    required: true
                }
            },
            
            "number": {
                type: "number",
                validation: {
                    required: true
                }
            },
            
            location: {
//                type: "object",
                validation: {
                    required: true
                }
            },
            
            soilId: {
                type: "integer",
                validation: {
                    required: true
                }
            },
            
            plantdate: {
                type: "date",
                validation: {
                    required: true
                }
            },
            
            felldate: {
                type: "date"
            },
            
            stemdiameter: {
                type: "number",
                validation: {
                    required: true
                }
            },
            
            height: {
                type: "number",
                validation: {
                    required: true
                }
            },
            
            multitrunk: {
                type: "boolean"
            },
            
            valuable: {
                type: "boolean"
            },
            
            iconic: {
                type: "boolean"
            }

        }
   
    });
    
    
    
    return Tree;
    
    
    
});